using AdminSG3L.Applicaticn.Dtos;
using AdminSG3L.Applicaticn.Commands;
using Microsoft.AspNetCore.Http;

namespace AdminSG3L.Applicaticn.ServicesInterface;

/// <summary>
/// 文件上传服务接口
/// </summary>
public interface IFileUploadService
{
    /// <summary>
    /// 上传文件
    /// </summary>
    /// <param name="file">文件</param>
    /// <param name="folder">文件夹名称</param>
    /// <returns>上传结果和文件URL</returns>
    Task<ApiResponse<string>> UploadFileAsync(IFormFile file, string folder);
}